x86: unify local_irq_XXX()
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 11 Dec 2008 11:36:00 +0000 (11:36 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 11 Dec 2008 11:36:00 +0000 (11:36 +0000)
commit3bc61439add8aa6386afcff33a46a85d2247b960
tree32bc8a298cefe09025dffc909c296e0bd6c83084
parent3245eb0237a6cdf5252efad3dda8030f8e97240a
x86: unify local_irq_XXX()

This also removes an inconsistency in that x86-64's __save_flags() had
a memory clobber, while x86_32's didn't.

It further adds type checking since blindly using {pop,push}{l,q} on a
memory operand of unknown size bares the risk of corrupting other
data.

Finally, it eliminates the redundant (with local_irq_restore())
__restore_flags() macro and renames __save_flags() to
local_save_flags(), making the naming consistent with Linux (again?).

Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen/include/asm-x86/system.h
xen/include/asm-x86/x86_32/system.h
xen/include/asm-x86/x86_64/system.h